Running a Node

License

The Fuel client can be used to sync with Fuel and fully validate the chain.

Binary Releases

Binary releases can be found at https://github.com/FuelLabs/fuel-js/releases

Running from Command Line

Download a release (above) and use an available network specifier and RPC endpoint to get started.

fuel --network="mainnet" --rpc="https://localhost:8545"

Additional Parameters

  ⚡ fuel [options]

  Options:

    -n, --network         the ethereum network "rinkeby"; default "rinkeby"
    -r, --rpc             a standard Ethereum RPC provider (i.e. local go-ethereum)
    -i, --infura          an Infura service API key (--network must also be specified)
    -es, --etherscan      an Etherscan service API key (--network must also be specified)
    -e, --environment     use the environment variables to specify node paramaters
    -w, --wallet          path to a pbkdf2 encrypted Ethers wallet JSON file; default ".fuel-wallet.json"
    -c, --clear           clears the leveldb store
    -s, --serve           starts a local Fuel RPC server on http://localhost:3000; default false
    -p, --port            specify the Fuel RPC server port; default 3000
    -o, --oracle          start a price feed oracle for stablecoins and ether
    -f, --faucet          start a test network faucet

  Examples:

    $ fuel --network="rinkeby" --rpc="http://localhost:8545"

Connecting the Fuel Wallet

import fuel from '@fuel-js/wallet';

const wallet = new fuel.Wallet(null, {
    path: 'http://localhost:3000',
});